package net.qiqbframework.commandhandling.gateway;

import net.qiqbframework.commandhandling.CommandMessage;

import javax.annotation.Nonnull;
import java.util.List;


public interface RetryScheduler {


    boolean scheduleRetry(@Nonnull CommandMessage commandMessage, @Nonnull RuntimeException lastFailure,
                          @Nonnull List<Class<? extends Throwable>[]> failures, @Nonnull Runnable commandDispatch);
}
